<script setup lang="ts">
import Child from "../components/Child.vue";
function showMsg(name: string, age: number) {
  console.log("触发了自定义事件...");
  console.log("姓名：" + name);
  console.log("年龄：" + age);
}
</script>
<template>
  <Child @myevent="showMsg"></Child>
</template>
<style scoped></style>
